package cn.ratel.kit;

import java.util.HashMap;
import java.util.Map;

public class MapKit {

	public static Map<String, Object> of(String key, Object value) {
		return new HashMap<String, Object>() {{
			put(key, value);
		}};
	}

	public static Map<String, Object> of(String key1, Object value1, String key2, Object value2) {
		return new HashMap<String, Object>() {{
			put(key1, value1);
			put(key2, value2);
		}};
	}

	public static Map<String, Object> of(String key1, Object value1, String key2, Object value2, String key3, Object value3) {
		return new HashMap<String, Object>() {{
			put(key1, value1);
			put(key2, value2);
			put(key3, value3);
		}};
	}

	public static Map<String, Object> of(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4) {
		return new HashMap<String, Object>() {{
			put(key1, value1);
			put(key2, value2);
			put(key3, value3);
			put(key4, value4);
		}};
	}

	public static Map<String, Object> of(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4, String key5, Object value5) {
		return new HashMap<String, Object>() {{
			put(key1, value1);
			put(key2, value2);
			put(key3, value3);
			put(key4, value4);
			put(key5, value5);
		}};
	}

}
